package com.reform.service;

import com.reform.res.Result;

public interface MailService {

    /**
     * 发送邮箱信息
     * @param to
     * @param title
     * @param content
     * @return
     */
    Result sendVertifyCode(String to,String title,String content);

    /**
     * 发送邮箱验证码
     * @param to
     * @return
     */
    Result sendVertifyCode(String to);

    /**
     * 验证邮箱验证码
     *
     * @param email
     * @param code
     * @return
     */
    Result vertifyCode(String email, String code);
}
